//
//  UIBarButtonItem+extesion.swift
//  微博
//
//  Created by 段瑞金 on 16/5/11.
//  Copyright © 2016年 段瑞金. All rights reserved.
//

import UIKit

extension UIBarButtonItem {
    convenience init(imageName : String , action : Selector , target : AnyObject){
        
        let barButton = UIButton(image: imageName, backGroundImage: "")
        barButton.addTarget(target, action: action, forControlEvents: .TouchUpInside)
        self.init(customView: barButton)
        
    }
}